package cpm.itheima.service.impl;

import cpm.itheima.dao.UserDao;
import cpm.itheima.models.User;
import cpm.itheima.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserServiceimpl implements UserService {
    @Autowired
    private UserDao userDao;
    public void saveUser(User user){
        System.out.println("UserServiceImpl.saveUser");
        userDao.saverUser(user);
    }

}
